package com.example.neusoft.yuejian_12.Service;

import com.example.neusoft.yuejian_12.JavaBean.Club;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by admin on 2017/9/30.
 */

public interface ClubService {

    @GET("lists/mod/club")
    Call<List<Club>> getClubList(

    );

    @GET("nearclub")
    Call<List<Club>> ClubList(

    );

//获取俱乐部详细信息
@GET("get/mod/{mod}/SessionID/{SessionID}/related/{related}/id/{id}/map/{map}")
Call<Club> getclubById(
        @Path("SessionID") String SessionID,
        @Path("related") String related,
        @Path ("map") String map,
        @Path("mod") String mod,
        @Path("id") String id
);
    //获取俱乐部课程
    @GET("get/mod/{mod}/SessionID/{SessionID}/related/{related}/id/{id}/map/{map}")
    Call <Club> getclassinfo(
            @Path("SessionID") String SessionID,
            @Path("related") String related,
            @Path ("map") String map,
            @Path("mod") String mod,
            @Path("id") String id
    );
    //搜索俱乐部
    @GET("lists/mod/club")
    Call<List<Club>> getSearchClub(
            @Query("club_name") String club_name);

    //获取俱乐部视频详细信息
    @GET("get/mod/{mod}/SessionID/{SessionID}/related/{related}/id/{id}/map/{map}")
    Call<Club> getVideoinfo(
            @Path("SessionID") String SessionID,
            @Path("related") String related,
            @Path ("map") String map,
            @Path("mod") String mod,
            @Path("id") String id
    );

    //关注俱乐部
    @GET("focus/SessionID/{SessionID}/userid/{userid}/fan_id/{fan_id}/fans_type/{fans_type}")
    Call<Integer> CollectClub(
            @Path("SessionID") String SessionID,
            @Path("userid") String userid,
            @Path("fan_id") String fan_id,
            @Path("fans_type") String fans_type
    );

    //获取俱乐部的收藏状态
    @GET("isExits/mod/fans/fan_id/{fan_id}/userid/{userid}/fans_type/{fans_type}/SessionID/{SessionID}")
    Call<Integer> getClubState(
            @Path("fan_id") String fan_id,
            @Path("userid") String userid,
            @Path("fans_type") String fans_type,
            @Path("SessionID") String SessionID
    );

    @POST("get/mod/club/related/1/")
    Call<Club> getVideoList(
            @Query("id") String id,
            @Query("map") String Clubvideo

    );

   //取消收藏
    @GET("delete/mods/fans/user_id/{user_id}/fan_id/{fan_id}/fan_type/{fan_type}")
      Call<Integer> uncollect(
        @Path("user_id") String user_id,
        @Path("fan_id") String fan_id,
        @Path("fan_type") String fan_type
);

    //取消关注俱乐部
    @GET("delete/mod/fans/user_id/{user_id}/fan_id/{fan_id}/fan_type/{fan_type}")
    Call<Integer> Nocollect(
            @Path("user_id") String user_id,
            @Path("fan_id") String fan_id,
            @Path("fan_type") String fan_type
    );
}
